<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #template {
        display: none;
      }
    </style>
  </head>
  <body>
    <!-- <input type="text" v-model:test="value"> -->
    <!-- <input type="text" v-model.trim.number.lazy="value"> -->

    <!-- 组件 -->
    <!-- <Comp v-model.trim.number.lazy="compValue"></Comp> -->

    <!-- text -->
    <!-- <input v-model.trim.number="value"></input> -->
    <!-- {{value}} -->

    <!-- checkoutbox -->
    <!-- <input type="checkbox" v-model="v" >xx</input> -->

    <!-- radio -->
          <!-- <input type="radio" value="one" v-model="v" >xx</input>
      <input type="radio" :value="two" v-model="v" >xx</input>
      {{v}} -->
    <div id="template">
      <Comp v-model.trim.number.lazy="compValue"></Comp>
    </div>
    <div id="app"></div>
    <script src="../../../../packages/vue/dist/vue.global.js"></script>

    <script>
      const { createApp, ref } = Vue

      const template = document.querySelector('#template')?.innerHTML
      const App = {
        setup() {
          const value = ref([true])
          const trueValue = ref(true)
          const falseValue = ref(false)
          const v = ref('one')
          const add = () => value.value++
          return {
            value,
            trueValue,
            falseValue,
            v,
            two: 'two-',
            add
          }
        },
        template
      }

      createApp(App).mount('#app')
    </script>
  </body>
</html>
